//
//  UIView+CMCCIOTIGFrame.m
//  ig
//
//  Created by jacky on 16/2/17.
//  Copyright © 2016年 CMCCIOT. All rights reserved.
//

#import "UIView+CMCCIOTIGFrame.h"

@implementation UIView (CMCCIOTIGFrame)

- (float)X{
    return self.frame.origin.x;
}

- (float)Y{
    return self.frame.origin.y;
}

- (float)Width{
    return self.frame.size.width;
}

- (float)Height{
    return self.frame.size.height;
}

- (float)Top {
    return self.frame.origin.y;
}

- (float)Bottom {
    return self.frame.origin.y + self.frame.size.height;
}

- (float)Left {
    return self.frame.origin.x;
}

- (float)Right {
    return self.frame.origin.x + self.frame.size.width;
}



@end
